#define _CRT_SECURE_NO_WARNINGS 1
#include"SList.h"

void text()
{
	SL s1;
	SeqListInit(&s1);
	SeqListPushFront(&s1, 1);
	SeqListPushFront(&s1, 2);
	SeqListPushFront(&s1, 3);
	SeqListPushFront(&s1, 4);
	SeqListPushFront(&s1, 5);
	SeqListPushFront(&s1, 6);
	SeqListPushFront(&s1, 7);
	SeqListPrint(&s1);
	SeqListPushBack(&s1, 9);
	SeqListPushBack(&s1, 8);
	SeqListPushBack(&s1, 7);
	SeqListPushBack(&s1, 6);
	SeqListPushBack(&s1, 4);
	SeqListPushBack(&s1, 3);
	SeqListPrint(&s1);
	SeqListPopBack(&s1);
	SeqListPopBack(&s1);
	SeqListPopBack(&s1);
	SeqListPrint(&s1);
	SeqListPopFront(&s1);
	SeqListPopFront(&s1);
	SeqListPopFront(&s1);
	SeqListPopFront(&s1);
	SeqListPrint(&s1);

	SeqListInsert(&s1, 2, 6);
	SeqListPrint(&s1);
	SeqListInsert(&s1, 7, 6);
	SeqListPrint(&s1);
	SeqListErase(&s1, 2);
	SeqListPrint(&s1);

	SeqListErase(&s1, 7);
	SeqListPrint(&s1);

	SeqListErase(&s1, 9);
	SeqListPrint(&s1);


	



	SeqListDestroy(&s1);
	
}


int main()
{
	text();
	return 0;
}